<template>
  <div class="head">
    <div>后台管理</div>
    <keep-alive>
      <Linkwallet />
    </keep-alive>
  </div>
</template>
<script>
import { Wallet } from '@element-plus/icons-vue'
import store from './../store'
import Linkwallet from '@/components/wallet.vue'
export default {
  beforeRouteLeave(to, from, next) {
    // 在离开当前路由时执行销毁操作
    // 例如销毁组件中的某些数据或清理定时器等
    // 这里只是一个简单的示例
    this.$destroy()
    next()
  },
  props: ['data'],
  components: {
    Linkwallet
  },
  data() {
    return {}
  },
  name: 'MyComponent'
}
</script>
<style scoped>
	.head {
		background: #303133;
		height: 45px !important;
		font-size: 18px;
		font-weight: bold;
		color: aliceblue;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 0 15px;
	}
</style>
